package com.tangzx.builder;


public abstract class DefaultMixWordFactory implements IMixWordFactory {
	private static int kIndex = 1;
	private String[] list = {"褗","蕆","uRu","瓥","憹","枎","Wv","灃","憮","櫗e","鋐", "*","@","#","$","%"};
	
	public void setList(String[] list)
	{
		this.list = list;
	}
	
	abstract public void log(String ori, String mix);
	
	public String makeWord(String o)
	{
		kIndex++;
		int n = kIndex;
		int len = list.length;
		String r = "";
		do{
			int y = n % len;
			n = n / len;
			r += list[y];
		}while(n > 0);
		this.log(o, r);
		return r;
	}
}
